ActionController::Routing::Routes.draw do |map|
  map.root :controller=>:welcome, :action=>:index
  
  map.resources :courses do |course|
    course.resources :course_instances do |course_instance|
      course_instance.resources :exercise_groups
    end
  end
  
  map.resource :session
  map.resource :user
  map.resource :admin, :controller=>:admin
  
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
end
